var App = require('app');

App.AppRunController = Em.ObjectController.extend({    
	pushForm: function(form) {		
		Vari.CurrPushFormId = form.get("id");
		
		var cometd = $.cometd;
		cometd.batch(function() {
			cometd.publish('/service/session', {
				type: 'form',
				sessionId: Vari.CurrAppId, 
				formId: Vari.CurrPushFormId
			});
		});
	}
});